package com.dk.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ArticleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ArticleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andArtIdIsNull() {
            addCriterion("art_id is null");
            return (Criteria) this;
        }

        public Criteria andArtIdIsNotNull() {
            addCriterion("art_id is not null");
            return (Criteria) this;
        }

        public Criteria andArtIdEqualTo(Integer value) {
            addCriterion("art_id =", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotEqualTo(Integer value) {
            addCriterion("art_id <>", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdGreaterThan(Integer value) {
            addCriterion("art_id >", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("art_id >=", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdLessThan(Integer value) {
            addCriterion("art_id <", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdLessThanOrEqualTo(Integer value) {
            addCriterion("art_id <=", value, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdIn(List<Integer> values) {
            addCriterion("art_id in", values, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotIn(List<Integer> values) {
            addCriterion("art_id not in", values, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdBetween(Integer value1, Integer value2) {
            addCriterion("art_id between", value1, value2, "artId");
            return (Criteria) this;
        }

        public Criteria andArtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("art_id not between", value1, value2, "artId");
            return (Criteria) this;
        }

        public Criteria andArtTitleIsNull() {
            addCriterion("art_title is null");
            return (Criteria) this;
        }

        public Criteria andArtTitleIsNotNull() {
            addCriterion("art_title is not null");
            return (Criteria) this;
        }

        public Criteria andArtTitleEqualTo(String value) {
            addCriterion("art_title =", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleNotEqualTo(String value) {
            addCriterion("art_title <>", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleGreaterThan(String value) {
            addCriterion("art_title >", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleGreaterThanOrEqualTo(String value) {
            addCriterion("art_title >=", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleLessThan(String value) {
            addCriterion("art_title <", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleLessThanOrEqualTo(String value) {
            addCriterion("art_title <=", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleLike(String value) {
            addCriterion("art_title like", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleNotLike(String value) {
            addCriterion("art_title not like", value, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleIn(List<String> values) {
            addCriterion("art_title in", values, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleNotIn(List<String> values) {
            addCriterion("art_title not in", values, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleBetween(String value1, String value2) {
            addCriterion("art_title between", value1, value2, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtTitleNotBetween(String value1, String value2) {
            addCriterion("art_title not between", value1, value2, "artTitle");
            return (Criteria) this;
        }

        public Criteria andArtContentIsNull() {
            addCriterion("art_content is null");
            return (Criteria) this;
        }

        public Criteria andArtContentIsNotNull() {
            addCriterion("art_content is not null");
            return (Criteria) this;
        }

        public Criteria andArtContentEqualTo(String value) {
            addCriterion("art_content =", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentNotEqualTo(String value) {
            addCriterion("art_content <>", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentGreaterThan(String value) {
            addCriterion("art_content >", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentGreaterThanOrEqualTo(String value) {
            addCriterion("art_content >=", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentLessThan(String value) {
            addCriterion("art_content <", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentLessThanOrEqualTo(String value) {
            addCriterion("art_content <=", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentLike(String value) {
            addCriterion("art_content like", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentNotLike(String value) {
            addCriterion("art_content not like", value, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentIn(List<String> values) {
            addCriterion("art_content in", values, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentNotIn(List<String> values) {
            addCriterion("art_content not in", values, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentBetween(String value1, String value2) {
            addCriterion("art_content between", value1, value2, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtContentNotBetween(String value1, String value2) {
            addCriterion("art_content not between", value1, value2, "artContent");
            return (Criteria) this;
        }

        public Criteria andArtAuthorIsNull() {
            addCriterion("art_author is null");
            return (Criteria) this;
        }

        public Criteria andArtAuthorIsNotNull() {
            addCriterion("art_author is not null");
            return (Criteria) this;
        }

        public Criteria andArtAuthorEqualTo(String value) {
            addCriterion("art_author =", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorNotEqualTo(String value) {
            addCriterion("art_author <>", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorGreaterThan(String value) {
            addCriterion("art_author >", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorGreaterThanOrEqualTo(String value) {
            addCriterion("art_author >=", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorLessThan(String value) {
            addCriterion("art_author <", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorLessThanOrEqualTo(String value) {
            addCriterion("art_author <=", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorLike(String value) {
            addCriterion("art_author like", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorNotLike(String value) {
            addCriterion("art_author not like", value, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorIn(List<String> values) {
            addCriterion("art_author in", values, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorNotIn(List<String> values) {
            addCriterion("art_author not in", values, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorBetween(String value1, String value2) {
            addCriterion("art_author between", value1, value2, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtAuthorNotBetween(String value1, String value2) {
            addCriterion("art_author not between", value1, value2, "artAuthor");
            return (Criteria) this;
        }

        public Criteria andArtTypeIsNull() {
            addCriterion("art_type is null");
            return (Criteria) this;
        }

        public Criteria andArtTypeIsNotNull() {
            addCriterion("art_type is not null");
            return (Criteria) this;
        }

        public Criteria andArtTypeEqualTo(Integer value) {
            addCriterion("art_type =", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeNotEqualTo(Integer value) {
            addCriterion("art_type <>", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeGreaterThan(Integer value) {
            addCriterion("art_type >", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("art_type >=", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeLessThan(Integer value) {
            addCriterion("art_type <", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeLessThanOrEqualTo(Integer value) {
            addCriterion("art_type <=", value, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeIn(List<Integer> values) {
            addCriterion("art_type in", values, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeNotIn(List<Integer> values) {
            addCriterion("art_type not in", values, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeBetween(Integer value1, Integer value2) {
            addCriterion("art_type between", value1, value2, "artType");
            return (Criteria) this;
        }

        public Criteria andArtTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("art_type not between", value1, value2, "artType");
            return (Criteria) this;
        }

        public Criteria andArtDateIsNull() {
            addCriterion("art_date is null");
            return (Criteria) this;
        }

        public Criteria andArtDateIsNotNull() {
            addCriterion("art_date is not null");
            return (Criteria) this;
        }

        public Criteria andArtDateEqualTo(Date value) {
            addCriterion("art_date =", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateNotEqualTo(Date value) {
            addCriterion("art_date <>", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateGreaterThan(Date value) {
            addCriterion("art_date >", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateGreaterThanOrEqualTo(Date value) {
            addCriterion("art_date >=", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateLessThan(Date value) {
            addCriterion("art_date <", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateLessThanOrEqualTo(Date value) {
            addCriterion("art_date <=", value, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateIn(List<Date> values) {
            addCriterion("art_date in", values, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateNotIn(List<Date> values) {
            addCriterion("art_date not in", values, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateBetween(Date value1, Date value2) {
            addCriterion("art_date between", value1, value2, "artDate");
            return (Criteria) this;
        }

        public Criteria andArtDateNotBetween(Date value1, Date value2) {
            addCriterion("art_date not between", value1, value2, "artDate");
            return (Criteria) this;
        }

        public Criteria andExamineIsNull() {
            addCriterion("examine is null");
            return (Criteria) this;
        }

        public Criteria andExamineIsNotNull() {
            addCriterion("examine is not null");
            return (Criteria) this;
        }

        public Criteria andExamineEqualTo(Integer value) {
            addCriterion("examine =", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineNotEqualTo(Integer value) {
            addCriterion("examine <>", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineGreaterThan(Integer value) {
            addCriterion("examine >", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineGreaterThanOrEqualTo(Integer value) {
            addCriterion("examine >=", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineLessThan(Integer value) {
            addCriterion("examine <", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineLessThanOrEqualTo(Integer value) {
            addCriterion("examine <=", value, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineIn(List<Integer> values) {
            addCriterion("examine in", values, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineNotIn(List<Integer> values) {
            addCriterion("examine not in", values, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineBetween(Integer value1, Integer value2) {
            addCriterion("examine between", value1, value2, "examine");
            return (Criteria) this;
        }

        public Criteria andExamineNotBetween(Integer value1, Integer value2) {
            addCriterion("examine not between", value1, value2, "examine");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}